import http from '@/common/http.js'
import qs from 'qs';

export async function getSubjects() { //获取测试题目
	return await http({
		url: '/character/subjects',
		method: 'GET'
	})
}
export async function getResult(data) { //获取测试结果
	return await http({
		url: '/character/fructify',
		method: 'POST',
		data: data
	})
}
export async function getResultbyid(data) { //获取测试结果
	return await http({
		url: '/dimension/'+data.id,
		method: 'GET'
	})
}
export async function getResultlock(data) { //根据结果id获取用户结果解锁状态
	return await http({
		url: '/character/getCharacter/'+data.id,
		method: 'GET'
	})
}
export async function reportUnlock(data) { //用户助力解锁测试结果
	return await http({
		url: '/character/assistance',
		method: 'GET',
		data: data
	})
}
export async function getuserNoLock() { //获取用户性格测试未解锁
	return await http({
		url: '/character/userNoLock',
		method: 'GET'
	})
}
